﻿using DevExpress.Data.Async.Helpers;
using NPOI.OpenXmlFormats.Dml;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lamex.Common
{
    public class ReturnCuttingType
    {
        public static string GetCuttingType( string rounting)
        {
            if(rounting.Contains("D07"))
                return "COMBIMA";
            else if ((rounting.Contains("D14_D21") || rounting.Contains("D14_D32")) && !rounting.Contains("D01_D14_D31_D21_D34"))
                return "BIMA";
            else if (rounting.Contains("D14_D28"))
                return "斜边线";
            else 
                return "小板线";

          
        }
        public static string GetMachineType(string rounting)
        {
            if (rounting.Contains("D11"))
                return "PuH";
            else if (rounting.Contains("D21")|| rounting.Contains("D14_D32"))
                return "BIMA";
            else if (rounting.Contains("D30"))
                return "数控钻";
            else if (rounting.Contains("D32") )
                return "CNC";
            else
                return "无";

         
        }
    }
}
